/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idea.model.qnrlibrary;


import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;


/**
 *
 * @author rejun001
 */
@Entity
@Table( name = "dc_attribute_group" )
@XmlRootElement
@NamedQueries( 
{
    @NamedQuery( name = "DcAttributeGroup.findAll" , query = "SELECT d FROM DcAttributeGroup d" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByAgId" , query = "SELECT d FROM DcAttributeGroup d WHERE d.agId = :agId" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByAgName" , query = "SELECT d FROM DcAttributeGroup d WHERE d.agName = :agName" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByDateCreated" , query = "SELECT d FROM DcAttributeGroup d WHERE d.dateCreated = :dateCreated" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByCreatedBy" , query = "SELECT d FROM DcAttributeGroup d WHERE d.createdBy = :createdBy" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByDateModified" , query = "SELECT d FROM DcAttributeGroup d WHERE d.dateModified = :dateModified" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByModifiedBy" , query = "SELECT d FROM DcAttributeGroup d WHERE d.modifiedBy = :modifiedBy" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByFieldtype" , query = "SELECT d FROM DcAttributeGroup d WHERE d.fieldtype = :fieldtype" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByDataconcept" , query = "SELECT d FROM DcAttributeGroup d WHERE d.dataconcept = :dataconcept" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByKfiseq" , query = "SELECT d FROM DcAttributeGroup d WHERE d.kfiseq = :kfiseq" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByCharacterset" , query = "SELECT d FROM DcAttributeGroup d WHERE d.characterset = :characterset" ) ,
    @NamedQuery( name = "DcAttributeGroup.findBySkipcapture" , query = "SELECT d FROM DcAttributeGroup d WHERE d.skipcapture = :skipcapture" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByKeyerprompt" , query = "SELECT d FROM DcAttributeGroup d WHERE d.keyerprompt = :keyerprompt" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByLengths" , query = "SELECT d FROM DcAttributeGroup d WHERE d.lengths = :lengths" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByPictureclause" , query = "SELECT d FROM DcAttributeGroup d WHERE d.pictureclause = :pictureclause" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByPreprinted" , query = "SELECT d FROM DcAttributeGroup d WHERE d.preprinted = :preprinted" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByQarequirement" , query = "SELECT d FROM DcAttributeGroup d WHERE d.qarequirement = :qarequirement" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByValuerange" , query = "SELECT d FROM DcAttributeGroup d WHERE d.valuerange = :valuerange" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByDlist" , query = "SELECT d FROM DcAttributeGroup d WHERE d.dlist = :dlist" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByLlist" , query = "SELECT d FROM DcAttributeGroup d WHERE d.llist = :llist" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByBarcodefieldspec" , query = "SELECT d FROM DcAttributeGroup d WHERE d.barcodefieldspec = :barcodefieldspec" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByHardedit" , query = "SELECT d FROM DcAttributeGroup d WHERE d.hardedit = :hardedit" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByFieldstatus" , query = "SELECT d FROM DcAttributeGroup d WHERE d.fieldstatus = :fieldstatus" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByPresenceisans" , query = "SELECT d FROM DcAttributeGroup d WHERE d.presenceisans = :presenceisans" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByOutputrecordtype" , query = "SELECT d FROM DcAttributeGroup d WHERE d.outputrecordtype = :outputrecordtype" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByOcr" , query = "SELECT d FROM DcAttributeGroup d WHERE d.ocr = :ocr" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByFloatingfields" , query = "SELECT d FROM DcAttributeGroup d WHERE d.floatingfields = :floatingfields" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByOmrgroup" , query = "SELECT d FROM DcAttributeGroup d WHERE d.omrgroup = :omrgroup" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByAnszonedesign" , query = "SELECT d FROM DcAttributeGroup d WHERE d.anszonedesign = :anszonedesign" ) ,
    @NamedQuery( name = "DcAttributeGroup.findByGrouptag" , query = "SELECT d FROM DcAttributeGroup d WHERE d.grouptag = :grouptag" )
} )
public class DcAttributeGroup implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Id
    @Basic( optional = false )
    @Column( name = "ag_id" )
    private String agId;
    @Basic( optional = false )
    @Column( name = "ag_name" )
    private String agName;
    @Basic( optional = false )
    @Column( name = "date_created" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateCreated;
    @Basic( optional = false )
    @Column( name = "created_by" )
    private String createdBy;
    @Column( name = "date_modified" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateModified;
    @Column( name = "modified_by" )
    private String modifiedBy;
    @Column( name = "fieldtype" )
    private String fieldtype;
    @Column( name = "dataconcept" )
    private BigInteger dataconcept;
    @Column( name = "kfiseq" )
    private String kfiseq;
    @Column( name = "characterset" )
    private BigInteger characterset;
    @Column( name = "skipcapture" )
    private BigInteger skipcapture;
    @Column( name = "keyerprompt" )
    private String keyerprompt;
    @Column( name = "lengths" )
    private String lengths;
    @Column( name = "pictureclause" )
    private String pictureclause;
    @Column( name = "preprinted" )
    private BigInteger preprinted;
    @Column( name = "qarequirement" )
    private BigInteger qarequirement;
    @Column( name = "valuerange" )
    private String valuerange;
    @Column( name = "dlist" )
    private BigInteger dlist;
    @Column( name = "llist" )
    private BigInteger llist;
    @Column( name = "barcodefieldspec" )
    private String barcodefieldspec;
    @Column( name = "hardedit" )
    private BigInteger hardedit;
    @Column( name = "fieldstatus" )
    private String fieldstatus;
    @Column( name = "presenceisans" )
    private BigInteger presenceisans;
    @Column( name = "outputrecordtype" )
    private String outputrecordtype;
    @Column( name = "ocr" )
    private BigInteger ocr;
    @Column( name = "floatingfields" )
    private BigInteger floatingfields;
    @Column( name = "omrgroup" )
    private String omrgroup;
    @Column( name = "anszonedesign" )
    private String anszonedesign;
    @Column( name = "grouptag" )
    private BigInteger grouptag;


    public DcAttributeGroup()
    {
    }


    public DcAttributeGroup( String agId )
    {
        this.agId = agId;
    }


    public DcAttributeGroup( String agId , String agName , Date dateCreated , String createdBy )
    {
        this.agId = agId;
        this.agName = agName;
        this.dateCreated = dateCreated;
        this.createdBy = createdBy;
    }


    public String getAgId()
    {
        return agId;
    }


    public void setAgId( String agId )
    {
        this.agId = agId;
    }


    public String getAgName()
    {
        return agName;
    }


    public void setAgName( String agName )
    {
        this.agName = agName;
    }


    public Date getDateCreated()
    {
        return dateCreated;
    }


    public void setDateCreated( Date dateCreated )
    {
        this.dateCreated = dateCreated;
    }


    public String getCreatedBy()
    {
        return createdBy;
    }


    public void setCreatedBy( String createdBy )
    {
        this.createdBy = createdBy;
    }


    public Date getDateModified()
    {
        return dateModified;
    }


    public void setDateModified( Date dateModified )
    {
        this.dateModified = dateModified;
    }


    public String getModifiedBy()
    {
        return modifiedBy;
    }


    public void setModifiedBy( String modifiedBy )
    {
        this.modifiedBy = modifiedBy;
    }


    public String getFieldtype()
    {
        return fieldtype;
    }


    public void setFieldtype( String fieldtype )
    {
        this.fieldtype = fieldtype;
    }


    public BigInteger getDataconcept()
    {
        return dataconcept;
    }


    public void setDataconcept( BigInteger dataconcept )
    {
        this.dataconcept = dataconcept;
    }


    public String getKfiseq()
    {
        return kfiseq;
    }


    public void setKfiseq( String kfiseq )
    {
        this.kfiseq = kfiseq;
    }


    public BigInteger getCharacterset()
    {
        return characterset;
    }


    public void setCharacterset( BigInteger characterset )
    {
        this.characterset = characterset;
    }


    public BigInteger getSkipcapture()
    {
        return skipcapture;
    }


    public void setSkipcapture( BigInteger skipcapture )
    {
        this.skipcapture = skipcapture;
    }


    public String getKeyerprompt()
    {
        return keyerprompt;
    }


    public void setKeyerprompt( String keyerprompt )
    {
        this.keyerprompt = keyerprompt;
    }


    public String getLengths()
    {
        return lengths;
    }


    public void setLengths( String lengths )
    {
        this.lengths = lengths;
    }


    public String getPictureclause()
    {
        return pictureclause;
    }


    public void setPictureclause( String pictureclause )
    {
        this.pictureclause = pictureclause;
    }


    public BigInteger getPreprinted()
    {
        return preprinted;
    }


    public void setPreprinted( BigInteger preprinted )
    {
        this.preprinted = preprinted;
    }


    public BigInteger getQarequirement()
    {
        return qarequirement;
    }


    public void setQarequirement( BigInteger qarequirement )
    {
        this.qarequirement = qarequirement;
    }


    public String getValuerange()
    {
        return valuerange;
    }


    public void setValuerange( String valuerange )
    {
        this.valuerange = valuerange;
    }


    public BigInteger getDlist()
    {
        return dlist;
    }


    public void setDlist( BigInteger dlist )
    {
        this.dlist = dlist;
    }


    public BigInteger getLlist()
    {
        return llist;
    }


    public void setLlist( BigInteger llist )
    {
        this.llist = llist;
    }


    public String getBarcodefieldspec()
    {
        return barcodefieldspec;
    }


    public void setBarcodefieldspec( String barcodefieldspec )
    {
        this.barcodefieldspec = barcodefieldspec;
    }


    public BigInteger getHardedit()
    {
        return hardedit;
    }


    public void setHardedit( BigInteger hardedit )
    {
        this.hardedit = hardedit;
    }


    public String getFieldstatus()
    {
        return fieldstatus;
    }


    public void setFieldstatus( String fieldstatus )
    {
        this.fieldstatus = fieldstatus;
    }


    public BigInteger getPresenceisans()
    {
        return presenceisans;
    }


    public void setPresenceisans( BigInteger presenceisans )
    {
        this.presenceisans = presenceisans;
    }


    public String getOutputrecordtype()
    {
        return outputrecordtype;
    }


    public void setOutputrecordtype( String outputrecordtype )
    {
        this.outputrecordtype = outputrecordtype;
    }


    public BigInteger getOcr()
    {
        return ocr;
    }


    public void setOcr( BigInteger ocr )
    {
        this.ocr = ocr;
    }


    public BigInteger getFloatingfields()
    {
        return floatingfields;
    }


    public void setFloatingfields( BigInteger floatingfields )
    {
        this.floatingfields = floatingfields;
    }


    public String getOmrgroup()
    {
        return omrgroup;
    }


    public void setOmrgroup( String omrgroup )
    {
        this.omrgroup = omrgroup;
    }


    public String getAnszonedesign()
    {
        return anszonedesign;
    }


    public void setAnszonedesign( String anszonedesign )
    {
        this.anszonedesign = anszonedesign;
    }


    public BigInteger getGrouptag()
    {
        return grouptag;
    }


    public void setGrouptag( BigInteger grouptag )
    {
        this.grouptag = grouptag;
    }


    @Override
    public int hashCode()
    {
        int hash = 0;
        hash += ( agId != null ? agId.hashCode() : 0 );
        return hash;
    }


    @Override
    public boolean equals( Object object )
    {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if ( !( object instanceof DcAttributeGroup ) )
        {
            return false;
        }
        DcAttributeGroup other = (DcAttributeGroup) object;
        if ( ( this.agId == null && other.agId != null ) || ( this.agId != null && !this.agId.equals( other.agId ) ) )
        {
            return false;
        }
        return true;
    }


    @Override
    public String toString()
    {
        return "idea.model.qnrlibrary.DcAttributeGroup[ agId=" + agId + " ]";
    }
    
}
